<?php
require_once (dirname(__FILE__) .'/PtObjectAbstract.php');
class PtThemeEditor extends PtObjectAbstract 
{
    public $id;
    public $id_cms;
    public $active;
	public $date_add;
    public $date_upd;
    
    public static $definition = array(
        'table' => 'pt_theme_editor',
        'primary' => 'id_editor',
        'fields' => array(
            'id_cms' => array(
                'type' => self::TYPE_INT,
                'required' => true, 
                'validate' => 'isUnsignedId'
            ),
            'active' => array(
                'type' => self::TYPE_BOOL,
                'required' => true
            ),
            'date_add' =>  array(
                'type' => self::TYPE_DATE, 
                'validate' => 'isDateFormat'
            ),
			'date_upd' => array(
                'type' => self::TYPE_DATE,
                'validate' => 'isDateFormat'
            )
        )
    );
}